package com.wwwarehouse.contract.bean;


import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * 订单监控bean
 * Created by ShineF on 2017/9/25 0025.
 */

public class ImporderMonitorBean implements Parcelable {


    /**
     * total : 3
     * size : 9
     * page : 1
     * list : [{"picUrl":null,"ukid":251901,"name":"卖胡萝卜的店铺","typeName":"店铺","typeCode":"H_SHOP"},{"picUrl":null,"ukid":10500013,"name":"tester店铺011","typeName":"店铺","typeCode":"H_SHOP"},{"picUrl":null,"ukid":10500014,"name":"tester店铺012","typeName":"店铺","typeCode":"H_SHOP"}]
     */

    private int total;
    private int size;
    private int page;
    private ArrayList<ListBean> list;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public ArrayList<ListBean> getList() {
        return list;
    }

    public void setList(ArrayList<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Parcelable {
        /**
         * picUrl : null
         * ukid : 251901
         * name : 卖胡萝卜的店铺
         * typeName : 店铺
         * typeCode : H_SHOP
         */

        private String picUrl;
        private String ukid;
        private String name;
        private String typeName;
        private String typeCode;

        public String getPicUrl() {
            return picUrl;
        }

        public void setPicUrl(String picUrl) {
            this.picUrl = picUrl;
        }

        public String getUkid() {
            return ukid;
        }

        public void setUkid(String ukid) {
            this.ukid = ukid;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getTypeName() {
            return typeName;
        }

        public void setTypeName(String typeName) {
            this.typeName = typeName;
        }

        public String getTypeCode() {
            return typeCode;
        }

        public void setTypeCode(String typeCode) {
            this.typeCode = typeCode;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.picUrl);
            dest.writeString(this.ukid);
            dest.writeString(this.name);
            dest.writeString(this.typeName);
            dest.writeString(this.typeCode);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.picUrl = in.readString();
            this.ukid = in.readString();
            this.name = in.readString();
            this.typeName = in.readString();
            this.typeCode = in.readString();
        }

        public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.total);
        dest.writeInt(this.size);
        dest.writeInt(this.page);
        dest.writeList(this.list);
    }

    public ImporderMonitorBean() {
    }

    protected ImporderMonitorBean(Parcel in) {
        this.total = in.readInt();
        this.size = in.readInt();
        this.page = in.readInt();
        this.list = new ArrayList<ListBean>();
        in.readList(this.list, ListBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<ImporderMonitorBean> CREATOR = new Parcelable.Creator<ImporderMonitorBean>() {
        @Override
        public ImporderMonitorBean createFromParcel(Parcel source) {
            return new ImporderMonitorBean(source);
        }

        @Override
        public ImporderMonitorBean[] newArray(int size) {
            return new ImporderMonitorBean[size];
        }
    };
}
